//    Copyright (C) Kherty.  All rights reserved.
using System;
using OpenLS.Core.Serialization;
using OpenLS.Vml.Serialization;

namespace OpenLS.Vml.Drawing
{
    class SignatureLine : ShapeElement
    {
        private Ext? _ext;
        private bool? _issignatureline;

        internal override void ReadXmlCore(ReadContext context)
        {
            using (var c = context.Read(VmlConstants.WordNamespace + "signatrueline"))
            {
                _ext = c.GetOptionalEnum<Ext>(VmlConstants.VmlNamespace + "ext");
                _issignatureline = c.GetOptionalBoolean("issignatureline");
            }
        }

        internal override void WriteXmlCore(WriteContext context)
        {
            using (var c = context.Write(VmlConstants.WordNamespace + "signatrueline"))
            {
                c.SetOptionalEnum<Ext>(VmlConstants.VmlNamespace + "ext", _ext);
                c.SetOptionalBoolean("issignatureline", _issignatureline);
            }
        }
    }
}
